package com.zzl.bonds.ticket.dto.finance;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.bonds.ticket.dto.KeyValue;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 融资申请表
 *
 * @author gull
 * @date 2021-11-30 14:13:19
 */
@Data
@ApidocModel
@SuppressWarnings("unused")
public class TicketFinanceListDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "凭证编号")
    private String ticketNo;
    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "融资本金")
    private Double financeAmount;
    @ApidocModelProperty(description = "融资成本")
    private Double financingCost;
    @ApidocModelProperty(description = "金融机构id")
    private String instinctyId;
    @ApidocModelProperty(description = "金融机构名称")
    private String instinctyName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "融资申请日期", validate = "yyyy-MM-dd")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "放款日期", validate = "yyyy-MM-dd")
    private Date disbursementDate;
    @ApidocModelProperty(description = "上链地址")
    private String financeBillAddress;
    @JsonIgnore
    private Integer ticketStatus;
    @ApidocModelProperty(description = "融资状态")
    private String handStatus;
    @ApidocModelProperty(description = "处理状态信息悬浮")
    private String handStatusInfo;
    @ApidocModelProperty(description = "处理进度，如20")
    private Integer handProgress;
    @ApidocModelProperty(description = "操作按钮集合")
    private List<KeyValue> operateButton;

//暂时不确定前端是否需要 确认后再删除
//    @ApidocModelProperty(description = "融资企业")
//    private String financeEnterpriseName;
//    @JsonSerialize(using = DoubleSerialize.class)
//    @ApidocModelProperty(description = "预计融资利息")
//    private Double estimatedFinancingInterest;
//    @JsonSerialize(using = DoubleSerialize.class)
//    @ApidocModelProperty(description = "预计服务费用")
//    private Double serviceChage;
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @ApidocModelProperty(description = "到期日期", validate = "yyyy-MM-dd")
//    private Date cashTime;




}
